Skip to content

Update Air Quality tutorial #4340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

npentrel
Copy link
Collaborator

@npentrel npentrel commented May 27, 2025

Merge after: viamrobotics/rdk#5150

https://deploy-preview-4340--viam-docs.netlify.app/tutorials/control/air-quality-fleet/

Relies on #4335

TODO:

  • Uncomment line in single-page-apps page about this tutorial.

Copy link

netlify bot commented May 27, 2025

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 2b44f2c
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/687a66ca00e0ca000892c172
😎 Deploy Preview https://deploy-preview-4340--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 54 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label May 27, 2025
@npentrel npentrel force-pushed the air-quality-tutorial branch from 7045c52 to be8a8d8 Compare May 27, 2025 14:44
@npentrel npentrel force-pushed the air-quality-tutorial branch from 2a7049e to c6e7b37 Compare July 4, 2025 14:09
@viambot
Copy link
Member

viambot commented Jul 4, 2025

It looks like the following files may have been renamed. Please ensure you set all needed aliases:
rename docs/data-ai/{train => ai/advanced}/_index.md (37%) rename docs/data-ai/{train => ai/advanced}/upload-external-data.md (91%) rename docs/data-ai/{train => ai}/train-tflite.md (84%) rename docs/data-ai/{train => ai}/train.md (97%) rename docs/operate/get-started/other-hardware/{create-module => }/dependencies.md (93%) rename docs/operate/get-started/other-hardware/{create-module => }/hello-world-module.md (96%) rename docs/operate/{get-started/other-hardware => reference}/module-configuration.md (88%) rename docs/operate/{mobility => reference}/orientation-vector.md (97%)

@npentrel npentrel force-pushed the air-quality-tutorial branch from c6e7b37 to d8c8af6 Compare July 4, 2025 14:26
@npentrel npentrel force-pushed the air-quality-tutorial branch 2 times, most recently from 8d41a60 to 255d2f1 Compare July 18, 2025 13:15
@npentrel npentrel force-pushed the air-quality-tutorial branch from 255d2f1 to 6e1a00a Compare July 18, 2025 13:16

- [SDS011 Nova PM sensor](https://www.amazon.com/SDS011-Quality-Detection-Conditioning-Monitor/dp/B07FSDMRR5)
- If you choose to use a different air quality sensor, you may need to [create your own module](/operate/get-started/other-hardware/create-module/) implementing the [sensor API](/operate/reference/components/sensor/#api) for your specific hardware.
- One [SDS011 Nova PM sensors](https://www.amazon.com/SDS011-Quality-Detection-Conditioning-Monitor/dp/B07FSDMRR5)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- One [SDS011 Nova PM sensors](https://www.amazon.com/SDS011-Quality-Detection-Conditioning-Monitor/dp/B07FSDMRR5)
- A [SDS011 Nova PM sensor](https://www.amazon.com/SDS011-Quality-Detection-Conditioning-Monitor/dp/B07FSDMRR5)

- [SDS011 Nova PM sensor](https://www.amazon.com/SDS011-Quality-Detection-Conditioning-Monitor/dp/B07FSDMRR5)
- If you choose to use a different air quality sensor, you may need to [create your own module](/operate/get-started/other-hardware/create-module/) implementing the [sensor API](/operate/reference/components/sensor/#api) for your specific hardware.
- One [SDS011 Nova PM sensors](https://www.amazon.com/SDS011-Quality-Detection-Conditioning-Monitor/dp/B07FSDMRR5)
- If you choose to use a different air quality sensor, you may need to [create your own module](/operate/get-started/other-hardware/) implementing the [sensor API](/operate/reference/components/sensor/#api) for your specific hardware.
- A single-board computer (SBC) [capable of running `viam-server`](https://docs.viam.com/installation/)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- A single-board computer (SBC) [capable of running `viam-server`](https://docs.viam.com/installation/)
- A single-board computer (SBC) [capable of running `viam-server`](/operate/get-started/setup/)

[ood nit]


## Decide how you will organize your fleet
In this section we'll set up one air sensing machine as our development device.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In this section we'll set up one air sensing machine as our development device.
In this section we'll set up one air sensing machine as our development device.
Later in this tutorial, you will learn to provision multiple devices using {{< glossary_tooltip term_id="fragment" text="fragments" >}}.

or something; this isn't obvious looking at the headings


{{<imgproc class="aligncenter" src="/fleet/fleet.svg" declaredimensions=true alt="Tree diagram with three locations that belong to one organization. One location contains sub-location A containing two machines and sub-location B containing one machine. Each of the two other locations contains machines directly with no sub-locations." >}}
Click the dropdown in the upper-right corner of the **FLEET** page and use the **+** button to create a new {{< glossary_tooltip term_id="organization" text="organization" >}} for your air quality machine company.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Click the dropdown in the upper-right corner of the **FLEET** page and use the **+** button to create a new {{< glossary_tooltip term_id="organization" text="organization" >}} for your air quality machine company.
Click the dropdown in the upper-right corner of the **FLEET** page and use the **+** button to create a new {{< glossary_tooltip term_id="organization" text="organization" >}} representing your air quality machine company.

This may also require a little more introduction--feels a bit odd to have them using the fleet organization system without explanation beyond tooltips (until later), but I guess it's fine if we're assuming business customers?

You have some individual customers, for example Antonia, who have a sensor machine in their home, or perhaps one inside and one outside.
You have other customers who are businesses, for example RobotsRUs, who have two offices, one in New York and one in Oregon, with multiple sensor machines in each.
RobotsRUs wants to separate their sensor data by physical location, so you create a location for RobotsRUs and then create sub-locations to group their New York sensor machines and their Oregon machines.
If the computer does not already have a Viam-compatible operating system installed, follow the [operating system setup section of the Quickstart guide](/operate/get-started/setup/) to install a compatible operating system.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If the computer does not already have a Viam-compatible operating system installed, follow the [operating system setup section of the Quickstart guide](/operate/get-started/setup/) to install a compatible operating system.
If the computer does not already have a Viam-compatible operating system installed, follow the [prerequisite section of the setup guide]/operate/get-started/setup/#prerequisite-make-sure-you-have-a-supported-operating-system) to install a compatible operating system.

since it doesn't say "quickstart," and i think this is a bit easier to understand

Select the part status dropdown to the right of your machine's name on the top of the page.

Click the copy icon next to **Machine cloud credentials**.
Paste the machine cloud credentials into a file on your hard drive called FILE>viam.json</FILE>.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Paste the machine cloud credentials into a file on your hard drive called FILE>viam.json</FILE>.
Paste the machine cloud credentials into a file on your hard drive called <FILE>viam.json</FILE>.

}
```

Replace `"<FRAGMENT-ID>"` with the fragment ID from your fragment.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Replace `"<FRAGMENT-ID>"` with the fragment ID from your fragment.
Replace `<FRAGMENT-ID>` with the fragment ID from your fragment.

[nit] since you don't replace the quote marks

Comment on lines 919 to 920
<div id="emailform"></div>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div id="emailform"></div>

Is it possible to remove this yet?

You might try putting an air filter in your home or office and comparing the air quality data before you start running the filter with air quality after you have run the filter for a while.
Or, try sealing gaps around doors, and check whether your seal is working by looking at your dashboard.
You can now set up one or more air quality sensors for yourself or others and access them with your dashboard.
If you are selling your air quality sensing machines, they can also use your dashboard to view _their_ data.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you are selling your air quality sensing machines, they can also use your dashboard to view _their_ data.
If you are selling your air quality sensing machines, users can use your dashboard to view _their_ data.

6. Now, you can actually delete the entire config from your machine!
In the next section, you will replace it with the fragment you just created so that it gets updated alongside all your other machines when you update the fragment in the future.
Complete the following steps on your laptop or desktop.
You don't need to install or edit anything else on your machine's single-board computer (aside from `viam-server` which you already did); you'll be developing your TypeScript app from your personal computer and deploying it to Viam.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still think this needs more specificity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to build This pull request is marked safe to build from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants